package com.zhang.modules.mianShi.rep;

import com.zhang.common.jpa.rep.BaseRep;
import com.zhang.modules.mianShi.entity.MachineGroup;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MachineGroupRep extends BaseRep<MachineGroup,String> {

    @Query(value = "select * from app_machine_group where deleted = false",nativeQuery = true)
    Page<MachineGroup> findByDeleted(Pageable pageable);


}
